package org.xdoclet.plugin.hibernate;

import java.net.URL;

import org.generama.MetadataProvider;
import org.xdoclet.QDoxMetadataProvider;

/**
 * @author Espen Amble Kolstad
 */
public class NaturalIdTestCase extends AbstractHibernateMappingTestCase {
    protected String getApplicableVersion() {
        return HibernateVersion.HIBERNATE_3_0;
    }

    protected URL getExpected() {
        return getResourceRelativeToThisPackage("naturalid/NaturalId.hbm.xml");
    }

    protected MetadataProvider createMetadataProvider() {
        URL reader = getResourceRelativeToThisPackage("naturalid/NaturalId.java");
        return new QDoxMetadataProvider(reader);
    }
}